3.587 \(\int x^m (a+b x^3) \, dx\)

Optimal. Leaf size=25 \[ \frac {a x^{m+1}}{m+1}+\frac {b x^{m+4}}{m+4} \]

[Out]

a*x^(1+m)/(1+m)+b*x^(4+m)/(4+m)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {14} \[ \frac {a x^{m+1}}{m+1}+\frac {b x^{m+4}}{m+4} \]

Antiderivative was successfully verified.

[In]

Int[x^m*(a + b*x^3),x]

[Out]

(a*x^(1 + m))/(1 + m) + (b*x^(4 + m))/(4 + m)

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rubi steps

\begin {align*} \int x^m \left (a+b x^3\right ) \, dx &=\int \left (a x^m+b x^{3+m}\right ) \, dx\\ &=\frac {a x^{1+m}}{1+m}+\frac {b x^{4+m}}{4+m}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 25, normalized size = 1.00 \[ \frac {a x^{m+1}}{m+1}+\frac {b x^{m+4}}{m+4} \]

Antiderivative was successfully verified.

[In]

Integrate[x^m*(a + b*x^3),x]

[Out]

(a*x^(1 + m))/(1 + m) + (b*x^(4 + m))/(4 + m)

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 33, normalized size = 1.32 \[ \frac {{\left ({\left (b m + b\right )} x^{4} + {\left (a m + 4 \, a\right )} x\right )} x^{m}}{m^{2} + 5 \, m + 4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*(b*x^3+a),x, algorithm="fricas")

[Out]

((b*m + b)*x^4 + (a*m + 4*a)*x)*x^m/(m^2 + 5*m + 4)

________________________________________________________________________________________

giac [A]  time = 0.16, size = 43, normalized size = 1.72 \[ \frac {b m x^{4} x^{m} + b x^{4} x^{m} + a m x x^{m} + 4 \, a x x^{m}}{m^{2} + 5 \, m + 4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*(b*x^3+a),x, algorithm="giac")

[Out]

(b*m*x^4*x^m + b*x^4*x^m + a*m*x*x^m + 4*a*x*x^m)/(m^2 + 5*m + 4)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 35, normalized size = 1.40 \[ \frac {\left (b m \,x^{3}+b \,x^{3}+a m +4 a \right ) x^{m +1}}{\left (m +4\right ) \left (m +1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*(b*x^3+a),x)

[Out]

x^(m+1)*(b*m*x^3+b*x^3+a*m+4*a)/(m+4)/(m+1)

________________________________________________________________________________________

maxima [A]  time = 1.30, size = 25, normalized size = 1.00 \[ \frac {b x^{m + 4}}{m + 4} + \frac {a x^{m + 1}}{m + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*(b*x^3+a),x, algorithm="maxima")

[Out]

b*x^(m + 4)/(m + 4) + a*x^(m + 1)/(m + 1)

________________________________________________________________________________________

mupad [B]  time = 1.21, size = 34, normalized size = 1.36 \[ \frac {x^{m+1}\,\left (4\,a+a\,m+b\,x^3+b\,m\,x^3\right )}{m^2+5\,m+4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*(a + b*x^3),x)

[Out]

(x^(m + 1)*(4*a + a*m + b*x^3 + b*m*x^3))/(5*m + m^2 + 4)

________________________________________________________________________________________

sympy [A]  time = 1.09, size = 94, normalized size = 3.76 \[ \begin {cases} - \frac {a}{3 x^{3}} + b \log {\relax (x )} & \text {for}\: m = -4 \\a \log {\relax (x )} + \frac {b x^{3}}{3} & \text {for}\: m = -1 \\\frac {a m x x^{m}}{m^{2} + 5 m + 4} + \frac {4 a x x^{m}}{m^{2} + 5 m + 4} + \frac {b m x^{4} x^{m}}{m^{2} + 5 m + 4} + \frac {b x^{4} x^{m}}{m^{2} + 5 m + 4} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**m*(b*x**3+a),x)

[Out]

Piecewise((-a/(3*x**3) + b*log(x), Eq(m, -4)), (a*log(x) + b*x**3/3, Eq(m, -1)), (a*m*x*x**m/(m**2 + 5*m + 4)
+ 4*a*x*x**m/(m**2 + 5*m + 4) + b*m*x**4*x**m/(m**2 + 5*m + 4) + b*x**4*x**m/(m**2 + 5*m + 4), True))

________________________________________________________________________________________